aboutsummaryrefslogtreecommitdiffstats
path: root/qtsixa [maintainership transfered]/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xqtsixa [maintainership transfered]/PKGBUILD134
1 files changed, 0 insertions, 134 deletions
diff --git a/qtsixa [maintainership transfered]/PKGBUILD b/qtsixa [maintainership transfered]/PKGBUILD
deleted file mode 100755
index 69958df..0000000
--- a/qtsixa [maintainership transfered]/PKGBUILD
+++ /dev/null
@@ -1,134 +0,0 @@
-# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
-
-pkgname=qtsixa
-pkgver=1.5.1
-pkgrel=20
-pkgdesc="An utility to configure and use sixaxis controller via bluetooth."
-url="http://sourceforge.net/projects/qtsixa/"
-arch=('i686' 'x86_64' 'ppc')
-license=('GPL')
-install=qtsixa.install
-backup=('etc/default/sixad')
-depends=('bluez4' 'python2-pyqt' 'qt4' 'python2' 'bluez-utils' 'bluez-libs' 'jack' 'libusb-compat')
-makedepends=('patch' 'pyqt' 'bluez-libs')
-conflicts=('sixpair')
-source=(http://downloads.sourceforge.net/qtsixa/QtSixA-"$pkgver"-src.tar.gz
- sixad-init.patch
- sixad-bin.patch
- sixad-shared-h.patch
- sixad.service
- qtsixa-dbus.patch
- qtsixa-gksudo.patch)
-md5sums=('d61bef5d737367aeddd57a6bc11da52a'
- 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP')
-build() {
- # patch files for Arch Linux's filesystem heirarchy
- pushd "$srcdir"/QtSixA-"$pkgver"
- sed -i 's:/sbin/:/bin/:g' qtsixa/gui/qtsixa_main.py
- sed -i 's: /bin/: /usr/bin/:g' qtsixa/gui/qtsixa_main.py
- sed -i 's:/sbin/:/bin/:g' utils/Makefile
- sed -i 's:/sbin/:/bin/:g' sixad/Makefile
- sed -i 's: /sbin/: /usr/bin/:g' sixad/sixad
- sed -i 's: /usr/sbin/: /usr/bin/:g' sixad/sixad
- sed -i 's:/sbin/:/bin/:g' sixad/bluetooth.cpp
- popd
-
- # patch for sixad daemon
- echo "Patching sixad..."
- patch -p0 < "$srcdir"/sixad-init.patch
- patch -p0 < "$srcdir"/sixad-bin.patch
- patch -p0 < "$srcdir"/sixad-shared-h.patch
- patch -p0 < "$srcdir"/qtsixa-dbus.patch
- patch -p0 < "$srcdir"/qtsixa-gksudo.patch
-
- cd "$srcdir"/QtSixA-$pkgver/qtsixa/gui/
- echo "Fixed python version..."
- find . -name "*.py" -exec sed -i "s/python/python2/g" '{}' \;
- sed -i 's/python/python2/g' ../qtsixa
- sed -i 's/python/python2/g' ../../sixad/sixad-dbus-blocker
- echo "Fixed bluetooth daemon"
- sed -i 's/init.d/rc.d/g' qtsixa_main.py
-
- cd "$srcdir"/QtSixA-$pkgver
-
- make all || exit 1
-
-}
-
-package() {
-## Qtsixa installation, adapted from makefile of qtsixa folder ##
-## make directories
-mkdir -p \
- "$pkgdir"/usr/bin/ \
- "$pkgdir"/usr/share/applications/ \
- "$pkgdir"/usr/share/pixmaps/ \
- "$pkgdir"/usr/share/qtsixa/ \
- "$pkgdir"/usr/share/qtsixa/game-profiles/ \
- "$pkgdir"/usr/share/qtsixa/gui/ \
- "$pkgdir"/usr/share/qtsixa/icons/ \
- "$pkgdir"/usr/share/qtsixa/pics/ \
- "$pkgdir"/usr/share/qtsixa/profiles
-# "$pkgdir"/usr/share/doc/qtsixa/manual
-# "$pkgdir"/usr/share/qtsixa/lang/ \
-# "$pkgdir"/usr/share/doc/qtsixa/ \
-
-
-##systemd
-mkdir -p "$pkgdir"/usr/lib/systemd/system/
-install -m 644 "$srcdir"/sixad.service "$pkgdir"/usr/lib/systemd/system/
-
-cd "$srcdir/QtSixA-$pkgver/qtsixa"
-
-## Install files
- install -m 755 qtsixa "$pkgdir"/usr/bin/
- install -m 755 sixad-lq "$pkgdir"/usr/bin/
- install -m 755 sixad-notify "$pkgdir"/usr/bin/
-# install -m 644 manual/* "$pkgdir"/usr/share/doc/qtsixa/manual/
- install -m 644 game-profiles/* "$pkgdir"/usr/share/qtsixa/game-profiles/
- install -m 644 gui/*.py "$pkgdir"/usr/share/qtsixa/gui/
- install -m 644 icons/* "$pkgdir"/usr/share/qtsixa/icons/
- install -m 644 pics/* "$pkgdir"/usr/share/qtsixa/pics/
- install -m 644 profiles/* "$pkgdir"/usr/share/qtsixa/profiles/
-# install -m 644 lang/* "$pkgdir"/usr/share/qtsixa/lang/
- install -m 644 sixad-notify.desktop "$pkgdir"/usr/share/qtsixa/
- install -m 644 qtsixa.desktop "$pkgdir"/usr/share/applications/
- install -m 644 qtsixa.xpm "$pkgdir"/usr/share/pixmaps/
-
-## Sixad installation, adapted from makefile of sixad folder ##
-## Make directories
-
-mkdir -p \
- "$pkgdir"/etc/default/ \
- "$pkgdir"/etc/rc.d/ \
- "$pkgdir"/etc/logrotate.d/ \
- "$pkgdir"/var/lib/sixad/ \
- "$pkgdir"/var/lib/sixad/profiles/
-
-chmod 775 -R "$pkgdir"/var/lib/sixad/
-
-cd ../sixad
-
-# Install files
- install -m 644 sixad.default "$pkgdir"/etc/default/sixad
- install -m 755 sixad.init "$pkgdir"/etc/rc.d/sixad
- install -m 644 sixad.log "$pkgdir"/etc/logrotate.d/sixad
- install -m 755 sixad "$pkgdir"/usr/bin/
- install -m 755 bins/sixad-bin "$pkgdir"/usr/bin/
- install -m 755 bins/sixad-sixaxis "$pkgdir"/usr/bin/
- install -m 755 bins/sixad-remote "$pkgdir"/usr/bin/
- install -m 755 bins/sixad-3in1 "$pkgdir"/usr/bin/
- install -m 755 bins/sixad-raw "$pkgdir"/usr/bin/
- install -m 755 sixad-dbus-blocker "$pkgdir"/usr/bin/
- #chmod 777 -R "$pkgdir"/var/lib/sixad/
-
-## Utils installation, adapted from makefile of utils folder ##
-## Install files
-
-cd ../utils
- install -m 755 bins/sixpair "$pkgdir"/usr/bin/
- install -m 755 bins/sixpair-kbd "$pkgdir"/usr/bin/
- install -m 755 bins/hidraw-dump "$pkgdir"/usr/bin/
- install -m 755 bins/sixad-jack "$pkgdir"/usr/bin/
-
-}
-